package com.kan.awaits.mongo.declarative;

import java.util.List;

import com.kan.awaits.mongo.annotations.AQL;

/**
 * 声明式DAO
 * 
 * @author john
 * @date 2011-4-13
 * @param <T>
 * @param <ID>
 */
public interface DeclarativeDao<T, ID>
{
	@AQL("FROM collectionName WHERE _id = {0} AND name = {1}")
	public List<T> list(ID id, String name);
}
